import React, { memo, useContext } from "react";
import ThemeContext from "../ThemeContext";
import { Button } from "antd";
const VoteFooter = (props) => {
  const { change } = useContext(ThemeContext);
  return (
    <div className="footer">
      <Button type="primary" onClick={change.bind(null, "sup")}>
        支持
      </Button>
      <Button type="primary" danger onClick={change.bind(null, "opp")}>
        反对
      </Button>
    </div>
  );
};

export default memo(VoteFooter);
